package com.sinosoft.vaccinetoai.server.business.chatchainrecord.updatechatchainrecord.controller;

import javax.validation.Valid;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sinosoft.vaccinetoai.server.business.chatchainrecord.updatechatchainrecord.io.UpdateChatChainRecordIO;
import com.sinosoft.vaccinetoai.server.business.chatchainrecord.updatechatchainrecord.vo.UpdateChatChainRecordVO;
import com.sinosoft.vaccinetoai.server.business.chatchainrecord.updatechatchainrecord.service.IUpdateChatChainRecordService;

/**
 * @ClassName: UpdateChatChainRecordController
 * @ClassNameExplain: 
 * @Description: 更新聊天链记录接口
 * @author xiazhihao
 * @date 2024年10月25日 17:37
 */
@RestController("UpdateChatChainRecordController")
@RequestMapping("/chatChainRecord")
public class UpdateChatChainRecordController {
	
	@Autowired
	@Qualifier("UpdateChatChainRecordService")
	IUpdateChatChainRecordService updateChatChainRecordService;
	
	/**
	 * @Title: updateChatChainRecord
	 * @TitleExplain: 
	 * @Description: 更新聊天链记录接口方法
	 * @param updateChatChainRecordIO 入参
	 * @return UpdateChatChainRecordVO 返参
	 * @version 1.0.3
	 * @author xiazhihao
	 */
	@PostMapping("/update")
	public UpdateChatChainRecordVO updateChatChainRecord(@Valid @RequestBody UpdateChatChainRecordIO updateChatChainRecordIO) throws Exception {
		return updateChatChainRecordService.updateChatChainRecord(updateChatChainRecordIO);
	}
	
}
